package com.caituo.idouyou.user.system.interceptor;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;

public class ExceptionInterception extends AbstractInterceptor {

	@Override
	public void init() {
		super.init();
	}

	@Override
	public void destroy() {
		super.destroy();
	}

	@Override
	public String intercept(ActionInvocation invocation) throws Exception {
		String result=null;
		try {
			result = invocation.invoke();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return result;
	}
	
	
}
